package com.itbaizhan.shopping_goods_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Specification;

import java.util.List;

public interface SpecificationMapper extends BaseMapper<Specification> {
	//根据id查询商品规格，需要把关联的规格项找出来SpecificationMapper
	Specification findById(Long id);
	// 根据商品类型查询商品规格
	List<Specification> findByProductTypeId(Long productTypeId);
}
